import { _decorator, Component, Node } from 'cc';
import { BasePanel } from './BasePanel';
import { _game } from '../Main';
import { Adsdk } from '../scenes/Adsdk';
const { ccclass, property } = _decorator;

@ccclass('SuccessPanel')
export class SuccessPanel extends BasePanel {
    
    panelName: string = '成功'

    start() {
        Adsdk.instance.showInterstitialAd() 
    }
    

    ok() {
        this.close(() => {
            _game.game.quit()
        })
    }
}


